package priv.pront.code.lanqiao.competition.course.date0329;

import java.util.Scanner;

public class 最长单词 {
    static String ans = "";
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String word = scanner.nextLine();
        String[] arr = word.split(" ");
        for (String s : arr) {
            ans = Math.max(ans.length(),s.length()) == ans.length() ? ans : s;
        }
        System.out.println(ans);
    }
}
